/*
 * #%L
 * InterfaceAPI
 * %%
 * Copyright (C) 2011 Ractoc.com
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package com.ractoc.opengamefinder.api.messages.network;

import com.jme3.network.serializing.Serializable;
import com.ractoc.opengamefinder.api.vo.AccountVO;

/**
 * Network message used to relay that a player has entered a room.
 * @author ractoc
 * @version 0.1
 */
@Serializable
public final class ChatEnterRoomNetworkMessage extends ChatNetworkMessage {
    private String roomName;
    private AccountVO account;
    
    /**
     * Default constructor.
     */
    public ChatEnterRoomNetworkMessage() {
    }

    /**
     * Set the roomname the player entered.
     * @param roomNameParam The roomname the player entered.
     */
    public void setRoomName(final String roomNameParam) {
        this.roomName = roomNameParam;
    }

    /**
     * Get the roomname the player entered.
     * @return The roomname the player entered.
     */
    public String getRoomName() {
        return roomName;
    }

    /**
     * Set the player that entered the room.
     * @param accountParam The player that entered the room.
     */
    public void setAccount(final AccountVO accountParam) {
        this.account = accountParam;
    }

    /**
     * Get the player that entered the room.
     * @return The player that entered the room.
     */
    public AccountVO getAccount() {
        return account;
    }
}
